package com.ysh.xiaomi.utils;

/**
 * 袁胜虎 on 2022/8/15 16:54
 */
public class StringUtils {
    /**
     * 判断当前字符串是否为空，包括null和空字符串以及都是空格的字符串
     * @param source
     * @return
     */
    public static boolean isEmpty(String source){
        return source == null || "".equals(source.trim());
    }
    public static boolean isLenghtEnough(String source, int length) {
        return source.length()>=length;
    }
}
